/*
 * @Description: 
 * @Author: linzejian
 * @Date: 2021-08-19 14:40:38
 * @LastEditTime: 2021-08-19 15:45:55
 * @LastEditors: Please set LastEditors
 */
import { createStore } from 'redux'
import rooterReducer from '../reducers/index.js'

export default function configStore(initialState) {
	const store = createStore(rooterReducer, initialState, 
		//触发redux-devtools
		window.devToolsExtension ? window.devToolsExtension() : undefined
	)
	console.log('store :>> ');
	return store
}